<table class="xsui-table xsui-table-striped xsui-table-hover xsui-table-bordered">
    <thead>
        <tr>
            <th>标题</th>
            <th>字段名</th>
            <th>数据类型</th>
            <th>是否NULL</th>
            <th>注释</th>
            <th>是否必填</th>
            <th>允许搜索</th>
            <th>分组</th>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <foreach name="list" item="vo">
        <tr data-key="{$vo.id}">
            <td>{$vo.user_name}</td>
            <td>{$vo.name}</td>
            <td>{$vo.telphone}</td>
            <td>{$vo.mobile}</td>
            <td>{$vo.qq}</td>
            <td>{$vo.position}</td>
            <td class="status">
        <if condition="$vo['online_status'] eq '1'">
            <a href="{:U('change_online_status','id='.$vo['id'].'&status=0')}" title="点击离线" class="xsui-success"><i class="fa fa-check fa-fw"></i>在线</a>
            <else/>
            <a href="{:U('change_online_status','id='.$vo['id'].'&status=1')}" title="点击在线" class="xsui-danger"><i class="fa fa-times fa-fw"></i>离线</a>
        </if></td>
            <td>{$vo.status|sofn_get_state_text='user-state',###}</td>
            <td>{$vo.createdTime}</td>
            <td>
                <ul class="xsui-operate-group">
                    <li><a href="#" class="xsui-btn ui-state-default xsui-icon-right">操作<i class="fa fa-caret-square-o-down"></i></a>
                        <ul>
                            <li><a href="{:U('user_edit','id='.$vo['id'])}" class="xsui-lnk-edit" data-id="{$vo.id}" title="编辑 {$vo.user_name}"><i class="fa fa-edit fa-fw"></i>编辑</a></li>
                            <li><a href="{:U('user_delete','id='.$vo['id'])}" class="xsui-lnk-remove" data-confirm="{'code':'zhan123'}" data-id="{$vo.id}" title="删除 {$vo.user_name}"><i class="fa fa-remove fa-fw"></i>删除</a></li>
                            <li><a href="{:U('user_password_reset','id='.$vo['id'])}" class="xsui-lnk-remove" data-id="{$vo.id}" data-confirm="您确定要将密码重置为123456吗?"><i class="fa fa-user-secret fa-fw"></i>重置密码</a></li>
                            <li><a href="{:U('user_role','id='.$vo['id'])}" class="xsui-lnk-edit"><i class="fa fa-credit-card fa-fw"></i>角色</a></li>
                        </ul>
                    </li>
                </ul>
            </td>
        </tr>
    </foreach>
</tbody>
</table>
<div class="xsui-pagination">{$page}</div>